<?php


namespace App\Entity\Admin;


use App\Entity\BaseEntity;

/**
 * Class TeacherDto
 * @package App\Entity\Teacher
 * @property string $name
 * @property string $mobile
 * @property string $password
 * @property array $classesList
 *
 */
class TeacherDto extends BaseEntity
{
    public function rules(): array
    {
        return [
            'mobile' => 'required',
            'name' => 'required',
        ];
    }

    public function messages(): array
    {
        return [
            'mobile.required' => '请输入登录手机号',
            'name.required' => '请输入真实姓名',
        ];
    }
}
